package com.bolingcavalry.crm.message.config;/*
 * @Auther:Sadie
 * @Date:2025/8/1
 * @Description:
 * @VERSON:1.8
 */

public class RabbitMQConstants {
    //配置交换机
    public static final String EXCHANGE = "message_exchange";
    //配置消息队列
    // 队列名：不同部门的消息队列

    //生产部门
    public static final String QUEUE_PRODUCTION = "queue.message.production";
    //综合部门
    public static final String QUEUE_GENERAL   = "queue.message.general";
    //测控部门
    public static final String QUEUE_MC        = "queue.message.mc";
    //销售部门
    public static final String QUEUE_SALES     = "queue.message.sales";
    //仪表部门
    public static final String QUEUE_INSTRUMENT = "queue.message.instrument";

    // 新增：按订单类型区分的队列
    // 服务单相关队列
    public static final String QUEUE_SERVICE_ORDER = "queue.message.service.order";
    // 确认单相关队列
    public static final String QUEUE_CONFIRMATION_ORDER = "queue.message.confirmation.order";
    // 任务单相关队列
    public static final String QUEUE_TASK_ORDER = "queue.message.task.order";
    // 总结单相关队列
    public static final String QUEUE_SUMMARY_ORDER = "queue.message.summary.order";
    // 服务问题相关队列
    public static final String QUEUE_SERVICE_PROBLEM = "queue.message.service.problem";
    // 通知总括
    public static final String QUEUE_NOTIFY_COMMANDER = "queue.message.notify.commander";
    // 拒绝类通知
    public static final String QUEUE_REFUSE_NOTIFY = "queue.message.refuse.notify";


    // Routing Key
    public static final String ROUTING_KEY_PRODUCTION = "message.production";
    public static final String ROUTING_KEY_GENERAL    = "message.general";
    public static final String ROUTING_KEY_MC         = "message.mc";
    public static final String ROUTING_KEY_SALES      = "message.sales";
    public static final String ROUTING_KEY_INSTRUMENT = "message.instrument";

    // 新增：按订单类型区分的路由键
    // 服务单相关路由键
    public static final String ROUTING_KEY_SERVICE_ORDER = "message.service.order";
    // 确认单相关路由键
    public static final String ROUTING_KEY_CONFIRMATION_ORDER = "message.confirmation.order";
    // 任务单相关路由键
    public static final String ROUTING_KEY_TASK_ORDER = "message.task.order";
    // 总结单相关路由键
    public static final String ROUTING_KEY_SUMMARY_ORDER = "message.summary.order";
    // 服务问题相关路由键
    public static final String ROUTING_KEY_SERVICE_PROBLEM = "message.service.problem";
    // 通知
    public static final String ROUTING_KEY_NOTIFY_COMMANDER = "message.notify.commander";
    // 拒绝类通知
    public static final String ROUTING_KEY_REFUSE_NOTIFY = "message.refuse.notify";
}